home *** CD-ROM | disk | FTP | other *** search
/ jppd.dyndns.org / jppd.dyndns.org.tar / jppd.dyndns.org / QUERYPRO / Impressora_PDF / CuteWriter.exe / {tmp} / Driver / TESTPS.TXT < prev   
Text File  |  2000-06-08  |  3KB  |  101 lines

  1. -----------------------------------------------------------
  2.      Microsoft Windows 98 README for Testing Postscript
  3.                      April 1998            
  4. -----------------------------------------------------------
  5.  
  6. (c) Copyright Microsoft Corporation, 1998
  7.  
  8.  
  9. This document provides complementary or late-breaking 
  10. information to supplement the Microsoft Windows 98 
  11. documentation.
  12.  
  13. ------------------------
  14. HOW TO USE THIS DOCUMENT
  15. ------------------------
  16.  
  17. To view Testps.txt on-screen in Notepad, maximize the 
  18. Notepad window.
  19.  
  20. To print Testps.txt, open it in Notepad or another word 
  21. processor, click the File menu, and then click Print.
  22.  
  23. % This is a PostScript program that will print out the current
  24. % communications settings of a PostScript printer that supports
  25. % the sccbatch operator.
  26. %
  27. % To use: copy this file to the port connected to the PostScript printer.
  28. %
  29. % (c) Copyright 1998, Microsoft Corporation
  30. %
  31. /buf 10 string def
  32. /Courier findfont 10 scalefont setfont
  33. /Parity [ (None) (Odd) (Even) (None) ] def
  34. /Flow   [ (Xon/Xoff) (Hardware) (Hardware) ] def
  35. statusdict /sccbatch known {
  36.     statusdict begin 25 sccbatch end    % get comm settings
  37.  
  38.     72 144 moveto                       % print baud rate
  39.     (Baud Rate:) show
  40.     222 144 moveto
  41.     exch buf cvs show
  42.  
  43.     72 129 moveto                       % print data bits
  44.     (Data Bits:) show
  45.     222 129 moveto
  46.     dup -5 bitshift 3 and               % isolate data bits
  47.     1 eq { (7) } { (8) } ifelse         % translate to string
  48.     show
  49.  
  50.     72 114 moveto                       % print parity
  51.     (Parity:) show
  52.     222 114 moveto
  53.     dup 3 and                           % isolate parity bits
  54.     Parity exch get                     % look up in string table
  55.     show
  56.  
  57.     72 99 moveto                        % print stop bits
  58.     (Stop Bits:) show
  59.     222 99 moveto
  60.     dup -7 bitshift                     % isolate stop bits
  61.     1 eq { (2) } { (1) } ifelse         % translate to string
  62.     show
  63.  
  64.     72 84 moveto                        % print flow control
  65.     (Flow Control:) show
  66.     222 84 moveto
  67.     -2 bitshift 3 and                   % isolate flow control bits
  68.     Flow exch get                       % look up in string table
  69.     show
  70. } {
  71.     72 144 moveto
  72.     (Could not determine printer settings.  If printer is connected) show
  73.     72 129 moveto
  74.     (to a parallel port (LPTx) no configuration is necessary.  If) show
  75.     72 114 moveto
  76.     (printer is connected to a serial port (COMx) find the DOS MODE) show
  77.     72 99 moveto
  78.     (command for this port and use those settings.  This is usually) show
  79.     72 84 moveto
  80.     (found in your Autoexec.bat file.) show
  81. } ifelse
  82.  
  83. { vmreclaim } stopped pop           % if this is Level 2 printer force
  84.                                     % garbage collection so vmstatus is
  85.                                     % accurate
  86.  
  87. vmstatus exch sub exch pop          % get maximum - used on TOS
  88.  
  89. 72 174 moveto                       % display maximum VM 
  90. (Max Printer VM (KB):) show
  91. 222 174 moveto
  92. dup 1024 div truncate buf cvs show
  93.  
  94. 72 159 moveto
  95. (Max Suggested VM (KB):) show            % display maximum suggested VM (85%)
  96. 222 159 moveto
  97. 0.85 mul 1024 div truncate buf cvs show
  98.  
  99. showpage
  100. 
  101.